#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin>>n;
	priority_queue<int, vector<int>, greater<int>> q;
	while(cin>>n)
		q.push(n);
	while(!q.empty())
	{
		cout<<q.top()<<" ";
		q.pop(); 
	}
	return 0;
}

